import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {DraGoodsComponent} from './dra-goods.component';

const routes: Routes = [
    {path: '', component: DraGoodsComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-dra-goods/add-dra-goods.module#AddDraGoodsModule'},
            {path: 'list', loadChildren: './list-dra-goods/list-dra-goods.module#ListDraGoodsModule'},
            {path: 'modify', loadChildren: './modify-dra-goods/modify-dra-goods.module#ModifyDraGoodsModule'},
            {path: 'report', loadChildren: './report-dra-goods/report-dra-goods.module#ReportDraGoodsModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class DraGoodsRoutingModule {
}
